<?php

setcookie("username","sun");//用户一关闭浏览器，Cookie就会被删除。
setcookie("mima","123456",  time()+3600*24);
setcookie("tian","000",  time()-1);